/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="VIASINFUSAO")
public class ViasInfusaoProteu implements Serializable{

    @Id
    @Column(name="VII_ST_CODIGO")
    private String viiStCodigo;
    @Column(name="VII_ST_DESCRICAO")
    private String viiStDescricao;
    @Column(name="VII_CH_SEXO")
    private String viiChSexo;
    @Column(name="VII_CH_PARENT")
    private String viiChParent;
    @Column(name="VII_CH_BLOQUEADO")
    private String viiChBloqueado;
    @Column(name="USU_IN_CODIGO")
    private Integer usuInCodigo;
    @Column(name="VII_DT_ALTERACAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date viiDtAlteracao;


    public Integer getUsuInCodigo() {
        return usuInCodigo;
    }

    public void setUsuInCodigo(Integer usuInCodigo) {
        this.usuInCodigo = usuInCodigo;
    }

    public String getViiChParent() {
        return viiChParent;
    }

    public void setViiChParent(String viiChParent) {
        this.viiChParent = viiChParent;
    }

    public String getViiChSexo() {
        return viiChSexo;
    }

    public void setViiChSexo(String viiChSexo) {
        this.viiChSexo = viiChSexo;
    }

    public String getViiChBloqueado() {
        return viiChBloqueado;
    }

    public void setViiChBloqueado(String viiChBloqueado) {
        this.viiChBloqueado = viiChBloqueado;
    }

    public Date getViiDtAlteracao() {
        return viiDtAlteracao;
    }

    public void setViiDtAlteracao(Date viiDtAlteracao) {
        this.viiDtAlteracao = viiDtAlteracao;
    }

    public String getViiStCodigo() {
        return viiStCodigo;
    }

    public void setViiStCodigo(String viiStCodigo) {
        this.viiStCodigo = viiStCodigo;
    }

    public String getViiStDescricao() {
        return viiStDescricao;
    }

    public void setViiStDescricao(String viiStDescricao) {
        this.viiStDescricao = viiStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ViasInfusaoProteu other = (ViasInfusaoProteu) obj;
        if ((this.viiStCodigo == null) ? (other.viiStCodigo != null) : !this.viiStCodigo.equals(other.viiStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 41 * hash + (this.viiStCodigo != null ? this.viiStCodigo.hashCode() : 0);
        return hash;
    }



}
